package com.example.project.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;

import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;

import java.time.LocalDateTime;
import java.util.List;

@ApiModel("ConFiles 表")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConFiles implements Serializable {
    private static final long serialVersionUID = -93539293932858522L;
    @ApiModelProperty("合同文件id")
    private Long id;

    @ApiModelProperty("项目id")
    private Long projId;



    @TableField(exist = false)
    private Project project;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("上传部门id")
    private Long deptId;

    @ApiModelProperty("部门")
    @TableField(exist = false)
    private Depart depart;
    @ApiModelProperty("上传人")
    private Long userId;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private List<File> fileList;

    @TableField(exist = false)
    private Long fileCount;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}

